package com.synjones.handsetS8.ild.net.common;

import com.synjones.handsetS8.ild.constants.HttpDefault;
import com.synjones.handsetS8.ild.utils.SPUtils;

/**
 * @author Chris Chan
 * Create on: 2021/7/20}14:29
 * For: http请求的工具
 * Explain:
 */
public class HttpUtils {
    /**
     * 获取ContentType
     *
     * @return
     */
    public static String getContentType() {
        return HttpDefault.CONTENT_TYPE;
    }

    /**
     * 获取AuthKey
     *
     * @return
     */
    public static String getAuthKey() {
        return SPUtils.read("accessToken", HttpDefault.AUTH_KEY);
    }
}
